org.eclipse.vtp.desktop.projects.core.export
Class ExportWebappPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.vtp.desktop.projects.core.export.ExportWebappPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage, ExporterExtension, ExporterObserver
Direct Known Subclasses:
ConfigureDatabasesPage, SelectApplicationsPage

public abstract class ExportWebappPage
extends org.eclipse.jface.wizard.WizardPage
implements ExporterObserver, ExporterExtension

A page in the export webapp wizard.

Author:
Lonnie Pryor

Field Summary
protected  Exporter exporter
          The exporter to use.
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
protected ExportWebappPage(java.lang.String pageName, Exporter exporter)
          Creates a new ExportWebappPage.
protected ExportWebappPage(java.lang.String pageName, java.lang.String title, org.eclipse.jface.resource.ImageDescriptor titleImage, Exporter exporter)
          Creates a new ExportWebappPage.
 
Method Summary
 void archiveChanged(Exporter exporter)
          Notifies this observer that the specified exporter's archive has changed.
 void createServiceConfigurations(java.lang.String projectName, org.w3c.dom.Element servicesElement)
          Create and configure any service elements for the runtime.
 boolean needsToBeShown()
          Returns true if this page needs to be shown.
 void projectSelectionChanged(Exporter exporter)
          Notifies this observer that the specified exporter's project selection has changed.
 void savePrefrences()
          Saves the preferences for this extension.
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Field Detail

exporter

protected final Exporter exporter
The exporter to use.

Constructor Detail

ExportWebappPage

protected ExportWebappPage(java.lang.String pageName,
                           Exporter exporter)
Creates a new ExportWebappPage.

Parameters:
pageName - The name of this page.
exporter - The exporter to use.

ExportWebappPage

protected ExportWebappPage(java.lang.String pageName,
                           java.lang.String title,
                           org.eclipse.jface.resource.ImageDescriptor titleImage,
                           Exporter exporter)
Creates a new ExportWebappPage.

Parameters:
pageName - The name of this page.
title - The title of this page.
titleImage - The image descriptor for this page.
exporter - The exporter to use.
Method Detail

needsToBeShown

public boolean needsToBeShown()
Returns true if this page needs to be shown.

Returns:
True if this page needs to be shown.

archiveChanged

public void archiveChanged(Exporter exporter)
Description copied from interface: ExporterObserver
Notifies this observer that the specified exporter's archive has changed.

Specified by:
archiveChanged in interface ExporterObserver
Parameters:
exporter - The exporter that was updated.

projectSelectionChanged

public void projectSelectionChanged(Exporter exporter)
Description copied from interface: ExporterObserver
Notifies this observer that the specified exporter's project selection has changed.

Specified by:
projectSelectionChanged in interface ExporterObserver
Parameters:
exporter - The exporter that was updated.

savePrefrences

public void savePrefrences()
Description copied from interface: ExporterExtension
Saves the preferences for this extension.

Specified by:
savePrefrences in interface ExporterExtension

createServiceConfigurations

public void createServiceConfigurations(java.lang.String projectName,
                                        org.w3c.dom.Element servicesElement)
Description copied from interface: ExporterExtension
Create and configure any service elements for the runtime.

Specified by:
createServiceConfigurations in interface ExporterExtension
Parameters:
projectName - The name of the project to create the configurations for.
servicesElement - The container of the service elements.